package com.java.base.exercise.designmode.builder;


import com.java.base.exercise.designmode.Student;

/**
 * @Author RenPu
 * @Date 2021/6/30 11:52
 * @Version 1.0
 * @Description:设计模式---构建者模式 测试主函数
 **/
public class TerrainMain {

    public static void main(String[] args) {

        //测试1.0
        ComplexTerrainBuilder builder = new ComplexTerrainBuilder();
        Terrain builder1 = builder.builerBunker().builerMine().builerWall().builder();
        System.out.println(builder1);


        //测试2.0
        Person weight = new Person.PersonBuilder().
                baseInfo(1, "张三", 20).
                loc("北京望京", "6002").
                score(100).
                weight(142).
                builder();
        System.out.println("person------------------------" + weight);

        Student builder2 = new Student.StudentBuilder().age("10").builder();
        System.out.println(builder2+"Student..................................");



    }
}
